package com.hospital.doctor.doctory.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.hospital.doctor.doctory.entity.DepartmentCt;
import com.hospital.xiaochengxiu.yan.entity.DepartmentQueue;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * @Author ：ysb
 * @ClassName ：DepartmentCtMapper
 * @Package ：com.hospital.doctor.doctory.dao
 * @Description: ct记录的服务接口
 * @Date:2021/11/4 9:25
 */
@Repository
public interface DepartmentCtMapper extends BaseMapper<DepartmentCt> {

    /**
     * 根据诊疗号查询过往检查记录
     * @param CdiagnoseNO
     * @return
     */
    List<DepartmentCt> selectInspectionRecord(Integer CdiagnoseNO);

    /**
     * 根据状态查询用户有没有开一样的检查记录
     * @param userId
     * @param state
     * @return
     */
    Integer selectRecord(Integer userId,Integer state);

    /**
     * 开具检查单
     * @param departmentQueue
     * @return
     */
    Integer insertRecord(DepartmentQueue departmentQueue);
}
